export const ORDER_RULE_TAB_NAME = {
    BASE_CONFIG: '0',
    INTELLIGENT_TAG: '1',
    INTELLIGENT_PACKAGING: '2',
    INTELLIGENT_EXPRESS: '3',
    AUTOMATE_REVIEW: '4',
};
export const ORDER_BASE_CONFIG_TAB_NAME = {
    'ORDER_INVENTORY': '0',
    'AUTO_MERGE_ORDER': '1',
    'FREIGHT_INTERCEPTION': '2',
    'AUTO_GET_WAYBILL': '3',
};

export const getAllowClearProps = (form, fieldName = 'level') => {
    return {
        fieldName,
        allowClear: true,
        resetValue: form.setFieldsValue,
        validateValue: form.validateFields,
    }
}
